
package com.putao.album.util;

public class PuTaoConstants {
    /**
     * ******* server api start ***********
     */

    //测试环境
    public static final boolean isDebug = true;
    public static final String Photo_API_Domain = "http://photo.dev.putao.io";
    public static final String Server_API_Domain = "http://api.photo.putao.io";
    public static final String Passport_API_Domain = "http://passport.dev.putao.io";
    public static final String UPLOAD_API_Domain = "http://upload.dev.putao.io";

    //预发布
//    public static final boolean isDebug = true;
//    public static final String Photo_API_Domain = "http://photo.test.putao.com";
//    public static final String Server_API_Domain = "http://api.photo.test.putao.com ";
//    public static final String Passport_API_Domain = "http://passport.test.putao.com";
//    public static final String UPLOAD_API_Domain = "http://api.cloud.test.putao.com";

    //真实环境
//    public static final boolean isDebug = true;
//    public static final String Photo_API_Domain = "http://photo.putao.com";
//    public static final String Server_API_Domain = "http://api.photo.putao.com";
//    public static final String Passport_API_Domain = "http://passport.putao.com";
//    public static final String UPLOAD_API_Domain = "http://api.cloud.putao.com";

    // 获取验证码
    public static final String API_MOBILE_VCODE = Passport_API_Domain + "/passport/mobile/vcode";
    // 手机号绑定验证码
    public static final String API_MOBILE_BIND = Passport_API_Domain + "/passport/mobile/bind";
    // 第一次设置密码(注册)
    public static final String API_REGISTER = Passport_API_Domain + "/passport/user/nosdkRegister";
    // 登录
    public static final String API_LOGIN = Passport_API_Domain + "/passport/user/nosdkLogin";
    // 修改密码
    public static final String API_MODIFY_PASSWD = Passport_API_Domain + "/passport/user/nosdkPassword";
    // 重置密码
    public static final String API_RESET_PASSWD = Passport_API_Domain + "/passport/user/nosdkResetPassword";
    // 检测手机号码
    public static final String API_CHECK_MOBILE = Passport_API_Domain + "/passport/mobile/checkMobile";
    // 相册列表
    public static final String API_GET_ALBUM_LIST = Server_API_Domain + "/baby/baby/albumList";
    //宝贝基本信息
    public static final String API_GET_BABY_SIMPLE_INFO = Server_API_Domain + "/baby/baby/getBabySimpleInfo";

    public static final String API_GET_SIDE_MORE_INFO = Server_API_Domain + "/baby/baby/getSideMoreInfo";

    public static final String API_SEND_INVITATION = Server_API_Domain + "/baby/baby/sendInvitation";
    //添加用户标签
    public static final String API_ADD_USER_TAG = Server_API_Domain + "/tag/tag/addUserTag";
    //删除用户标签
    public static final String API_DEL_USER_TAG = Server_API_Domain + "/tag/tag/delUserTag";
    //获取用户标签
    //http://api.photo.putao.io/tag/tag/getUserTag?uid=6000
    public static final String API_GET_USER_TAG = Server_API_Domain + "/tag/tag/getUserTag";
    //标签相册列表
    public static final String API_TAG_ALBUM_LIST = Server_API_Domain + "/tag/tag/tagAlbumList";
    //标签相册照片列表
    public static final String API_TAG_PHOTO_LIST = Server_API_Domain + "/tag/tag/tagPhotoList";
    //获取宝宝照片列表
    public static final String API_GET_BABY_PHOTO_LIST = Server_API_Domain + "/album/album/getBabyPhotoList";
    //批量给照片打标签
    public static final String API_BATCH_ADD_PHOTO_TAG = Server_API_Domain + "/tag/tag/batchAddPhotoTag";
    //给相册打标签
    public static final String API_Add_ALBUM_TAG = Server_API_Domain + "/tag/tag/addAlbumTag";
    //给照片打标签
    public static final String API_POST_Add_PHOTO_TAG = Server_API_Domain + "/tag/tag/addPhotoTag";
    //移除标签照片列表
    public static final String API_DELTAG_PHOTO_List = Server_API_Domain + "/tag/tag/delTagPhotoList";
    //批量移除标签相册照片
    public static final String API_BATCH_DELTAG_PHOTO_List = Server_API_Domain + "/tag/tag/batchDelPhotoTag";
    //获取上传Token
    public static final String API_GET_TOKEN = Server_API_Domain + "/policy/policy/getUploadToken";
    //亲照片
    public static final String API_POST_PHOTO_PRAISE = Server_API_Domain + "/album/album/photoPraise";
    //得到相册标签
    public static final String API_GET_ALBUM_TAG = Server_API_Domain + "/tag/tag/getAlbumTag";
    //添加相册标签
    public static final String API_ADD_ALBUM_TAG = Server_API_Domain + "/tag/tag/addAlbumTag";
    //照片详情 http://api.photo.putao.io/album/album/photoDetail?photo_id=1
    public static final String API_GET_PHOTO_DETAIL = Server_API_Domain + "/album/album/photoDetail";
    //删除照片 http://api.photo.putao.io/album/album/photoDel?photo_id=1&&
    public static final String API_POST_PHOTO_DELETE = Server_API_Domain + "/album/album/photoDel";
    //批量删除照片 http://api.photo.putao.io/album/album/batchDelPhoto&&photo_ids=[31,32,33]
    public static final String API_POST_PHOTOS_DELETE = Server_API_Domain + "/album/album/batchDelPhoto";
    //给相册加精选 http://api.photo.putao.io/album/album/addChoicenessPhoto?photo_id=1&&
    public static final String API_POST_PHOTO_ADD_CHOICENESS = Server_API_Domain + "/album/album/addChoicenessPhoto";
    //取消相册加精选 http://api.photo.putao.io/album/album/delChoicenessPhoto?photo_id=1&&
    public static final String API_POST_PHOTO_DEL_CHOICENESS = Server_API_Domain + "/album/album/delChoicenessPhoto";
    //精选相册列表 http://api.photo.putao.io/album/album/choicenessPhotoList?baby_id=1&nextPage=1
    public static final String API_GET_CHOICENESS_PHOTOLIST = Server_API_Domain + "/album/album/choicenessPhotoList";
    //时光轴相册列表  http://api.photo.putao.io/baby/baby/getPhotosList?album_id=1
    public static final String API_GET_TINY_PHOTOLIST = Server_API_Domain + "/baby/baby/getPhotosList";
    //宝宝管理列表 http://api.photo.putao.io/baby/baby/getUserBabyList?uid=6000
    public static final String API_GET_USER_BABYLIST = Server_API_Domain + "/baby/baby/getUserBabyList";
    //宝宝资料详情 http://api.photo.putao.io/baby/baby/getBabyDetailInfo?baby_id=40&uid=6000
    public static final String API_GET_BABY_DETAIL = Server_API_Domain + "/baby/baby/getBabyDetailInfo";
    //关联宝宝 http://api.photo.putao.io/baby/baby/verifyInvitation
    public static final String API_POST_BABY_CONNECT = Server_API_Domain + "/baby/baby/verifyInvitation";
    //获取与宝宝关系列表 http://api.photo.putao.io/baby/baby/getRelationshipList?baby_id=4
    public static final String API_GET_BABY_RELATIONS = Server_API_Domain + "/baby/baby/getRelationshipList";
    //亲相册  http://api.photo.putao.io/album/album/albumPraise
    public static final String API_POST_ALBUM_KISS = Server_API_Domain + "/album/album/albumPraise";
    //得到照片的标签 http://api.photo.putao.io/tag/tag/getPhotoTagList?photo_id=290&baby_id=41
    public static final String API_GET_PHOTO_TAG = Server_API_Domain + "/tag/tag/getPhotoTagList";
    //上传相册的故事 http://api.photo.putao.io/album/album/saveAlbumStory
    public static final String API_POST_ALBUM_STORY = Server_API_Domain + "/album/album/saveAlbumStory";
    public static final String API_REGISTER_SUCESS_CALLBACK = Server_API_Domain + "/baby/baby/registerSucessCallBack";
    public static final String API_UPLOAD_CHECK = UPLOAD_API_Domain + "/upload/check";
    //上传图片
    public static final String API_UPLOAD_UPLOAD_UPLOAD = UPLOAD_API_Domain + "/upload/upload";
    public static final String API_UPLOAD_UPLOAD_NOFILEUUPLOAD = UPLOAD_API_Domain + "/upload/noFileUpload";
    //上传照片完毕,通知以便推送消息http://api.camera.putao.com/baby/baby/uploadAfterCallBack    POST  uid/ baby_id
    public static final String API_POST_UPLOAD_AFTER_CALLBACK = Server_API_Domain + "/baby/baby/uploadAfterCallBack";

    // 相册列表
    public static final String API_GET_SHARE_CONTENT = Server_API_Domain + "/baby/baby/getShareContent";

    //宝宝资料无图像修改,保存操作
    public static final String API_POST_BABY_EDIT = Server_API_Domain + "/baby/baby/edit";


    // 修改照片时间
    public static final String API_POST_MODIFY_PHOTO_TIME = Server_API_Domain + "/album/album/modifyPhotoShoottime";

    //照片举报
    public static final String API_POST_PHOTO_REPORT = Server_API_Domain + "/album/album/photoReport";

    //取消宝宝关联
    public static final String API_POST_BABY_CANCEL = Server_API_Domain + "/baby/baby/cancelBabyRp";

    //获取用户图像
    public static final String API_GET_USER_AVATAR = Server_API_Domain + "/user/user/getAvatar";

    //登陆后获取新上传的照片
    public static final String API_GET_NEW_PHOTOS = Server_API_Domain + "/baby/baby/getBabyLatelyPhoto";

    /********** server api end ************/
    /**
     * ******** sharepreference key *****************
     */
    public static final String PREFERENCE_KEY_TOKEN = "KEY_TOKEN";
    public static final String PREFERENCE_KEY_UID = "KEY_UID";
    public static final String PREFERENCE_KEY_NICKNAME = "KEY_NICKNAME";
    public static final String PREFERENCE_KEY_MOBILE = "KEY_MOBILE";
    public static final String PREFERENCE_KEY_PASSWORD = "KEY_PWD";
    public static final String PREFERENCE_KEY_VERSIONCODE = "KEY_VERSION";
    public static final String PREFERENCE_KEY_FIRST_LAUNCH = "KEY_FIRST_LAUNCH";
    public static final String PREFERENCE_KEY_BABY_ID = "KEY_BABY_ID";
    public static final String PREFERENCE_KEY_RELATIONSHIP = "KEY_RELATIONSHIP";

    public static final String PREFERENCE_KEY_BABY_NAME = "KEY_BABY_NAME";

    public static final String PREFERENCE_KEY_BABY_AGE = "KEY_BABY_AGE";

    public static final String PREFERENCE_KEY_BABY_ICON_URL = "KEY_BABY_ICON_URL";

    //仅在wifi下上传或下载
    public static final String PREFERENCE_KEY_UP_DOWN_ONLY_WIFI = "KEY_UP_DOWN_ONLY_WIFI";
    //退出应用后继续上传
    public static final String PREFERENCE_KEY_COUNTINUTE_UPLOAD_BACKGROUND = "KEY_COUNTINUTE_UPLOAD_BACKGROUND";
    //友盟DeviceToken
    public static final String PREFERENCE_KEY_UMENG_DEVICE_TOKEN = "KEY_UMENG_DEVICE_TOKEN";
    //标识是否有新消息
    public static final String PREFERENCE_KEY_FLAG_NEW_MESSAGE = "KEY_FLAG_NEW_MESSAGE";
    /** ******** sharepreference key ******************/
    /**
     * ************* EventBus *****************
     */
    public final static int EVENTBUS_LOGIN_SUCCESS = 1;
    public final static int FINISH_TO_MENU_PAGE = 2;
    public final static int EVENTBUS_FINISH_RELATION_SELECT = 3;
    public final static int EVENTBUS_FINISH_PHOTO_SELECT = 4;
    public final static int EVENTBUS_UPLOAD_PHOTOS = 5;
    public final static int EVENTBUS_ADD_CHILD_SUCCESS = 6;
    public final static int EVENTBUS_SELECT_CHILD_SUCCESS = 7;
    //修改用户信息成功
    public final static int EVENTBUS_MODIFY_CHILD_SUCCESS = 8;

    public final static int EVENTBUS_ADD_TAG_SUCCESS = 9;
    //标签管理删除标签成功
    public final static int EVENTBUS_DELETE_OR_ADD_TAG_SUCCESS = 10;
    //关联宝宝
    public final static int EVENTBUS_RELATE_BABY_SUCCESS = 11;
    //照片详情中删除了照片
    public final static int EVENTBUS_PHOTO_DELETED = 12;
    //上传选中照片
    public final static int EVENTBUS_UPLOAD_LOCAL_PHOTOS = 13;

    //添加/移出精选
    public final static int EVENTBUS_ADD_OR_REMOVE_COLLECTION = 14;


    //刷新列表
    public final static int EVENTBUS_REFRESH_ALBUM = 15;

    //删除宝宝
    public final static int EVENTBUS_DELETE_CHILD = 16;

    //删除最后一个宝宝
    public final static int EVENTBUS_DELETE_LAST_CHILD = 17;

    //批量移除标签相册照片
    public final static int EVENTBUS_BATCH_REMOVE_TAG_PHOTO = 101;
    //批量添加标签相册照片
    public final static int EVENTBUS_BATCH_ADD_TAG_PHOTO = 102;
    //退出登录
    public final static int EVENTBUS_LOGIN_OUT = 201;

    //收到消息及时弹出通知框
    public final static int EVENTBUS_RECEIVE_MESSAGE = 301;

    //扫描二维码
    public final static int EVENTBUS_SCAN_QR_CODE = 401;


    /**************** EventBus ******************/
    /**
     * ************* Default Value *****************
     */

    public static final String SYSTEM_CAMERA_FOLDER = "DCIM/CAMERA";
    public static final String PAIAPI_PHOTOS_FOLDER = "PutaoCamera";
    public static final String APP_FOLDER = "PutaoAlbum";
    //官网地址
    public static final String ORG_WEBSITE_URL = "http://www.putao.com/";

    public static final String QQ_INVITE_URL = "https://fir.im/putaotime";

    public static final String SHARE_WEB_APP_URL = Photo_API_Domain + "/baby/baby/showBabyAlbum?baby_id=";
    //应用ID
    public static final String APP_ID = "11";
    //平台公司ID
    public static final String PLATFORM_ID = "1";
    //客户端ID:ios 1 android 2 wp 3 other 4
    public static final String CLIENT_TYPE = "2";
    //默认BabyId
    public static final String DEVAULT_BABY_ID = "-1";
    /**
     * ************* Default Value *****************
     */

    //微信葡萄亲子时光
    public static final String WEIXIN_APP_KEY = "wx1be8f2d2eeceb61b";
    public static final String WEIBO_APP_KEY = "1796629895";
    public static final String QQ_APP_ID = "1104592218";


}
